package example.abstractTest.guessGame;

import java.util.Scanner;

public class ConcreateGuessGame extends AbstractGuessGame{

	private Scanner scanner;
	
	public ConcreateGuessGame() {
		scanner = new Scanner(System.in);
	}
	
	@Override
	protected void showMessage(String message) {
		System.out.println(message + "!");
	}

	@Override
	protected int getUserInput() {
		System.out.print("input a number: ");
		return scanner.nextInt();
	}

}
